package com.vincent.jvmtest.config;

import com.vincent.jvmtest.service.TestService;
import org.springframework.beans.factory.InitializingBean;

/**
 * @author vincent
 * @DATE 2018/11/19
 * @Description
 */
public class Hepler implements InitializingBean{
    private TestProperties config;

    public void init(){
        TestService testService = new TestService();
        testService.say();
    }


    public TestProperties getConfig() {
        return config;
    }

    public void setConfig(TestProperties config) {
        this.config = config;
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("init");
    }
}
